<!--
	Carnegie Mellon University
	School of Computer Science
	MSIT eBusiness Technology

	Team 8 - Infinity (2011 Spring)
	infinity-team8@googlegroups.com

	Professor: Jeffrey L. Eppinger
	Program Faculty: Sujata Telang
-->

<jsp:include page="employee-template-top.jsp" />
<jsp:include page="employee-topnav.jsp" />
<%@ page import="databean.EmployeeBean" %>

<div id="header">
	<h1>View Employee List</h1>
</div>

<jsp:include page="employee-sidebar.jsp" />

<div id="content">

<script type="text/javascript">
	$(function() {
			$("#minimal").tablesorter();
	});

</script>

<table id="minimal" class="tablesorter {sortlist: [0,0],[2,0]}" summary="display all employees">
<thead>
	<tr>
		<th scope="col">User Name</th>
		<th scope="col">First Name</th>
		<th scope="col">Last Name</th>
	</tr>
</thead>
<%
	EmployeeBean[] employees = (EmployeeBean[]) request.getSession().getAttribute("employeeList");

	for (EmployeeBean employee : employees) {
%>
<tbody>
	<tr>

		<td><%=employee.getUserName()%></td>
		<td><%=employee.getFirstName()%></td>
		<td><%=employee.getLastName()%></td>
	</tr>
</tbody>
<%
	}
%>

</table>

</div>
<jsp:include page="footer.jsp" />
